# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-instagram-private-api
_pkgname=instagram_private_api
pkgver=1.6.0.0
pkgrel=5
pkgdesc='A Python wrapper for the Instagram private API with no 3rd party dependencies.'
arch=('any')
url='https://github.com/ping/instagram_private_api'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('35b83ef8609512201c870308eec19445eac765522faa28479ccb7c3665462d1c311bb3e861f7ac5d4b3606d37cd917a2f963b0211fdc0fc07da5b4caa512629a')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

